<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示方式</title>
    <style>
        div {
            border: 1px solid red;
            width: 100px;
            height: 100px;
        }
        span{
            border: 1px solid blue;
            /*行内元素不能修改宽高*/
            width: 100px;
            height: 100px;
            display: inline-block;
        }
        img{
            width: 100px;
            height: 100px;
        }
        a{
            background-color: #0AA1ED;
            width: 132px;
            height: 40px;
            display: block;
            text-align: center;
            line-height: 40px;
            text-decoration:none;
            color: white;
            font-size: 20px;
            border-radius: 2px;
        }
        a:hover,a:visited,a:link,a:active{
            color: white;
        }
    </style>
</head>
<body>
    <center><a href="">查看详情</a></center>
    <div>div1</div>
    <div>div2</div>
    <div>div3</div>
    <span>span1</span>
    <span>span2</span>
    <span>span3</span>
    <img src="../html_02/img/baoer.jpg" alt="">
    <img src="../html_02/img/wangye.jpg" alt="">
    <img src="../html_02/img/luqin.jpg" alt="">
</body>
</html>